<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

/**
 *  敏感词
 */
class BlackWords extends Model
{
    protected $table = 'black_words';
    protected $fillable = ['word', 'word_type', 'flag'];

    //色情
    const TYPE_SEX = 1;
    //政治
    const TYPE_POL = 2;
    //暴力
    const TYPE_VIL = 3;
    //广告
    const TYPE_AD = 4;

    const TYPE = [
        self::TYPE_SEX => '色情',
        self::TYPE_POL => '政治',
        self::TYPE_VIL => '暴力',
        self::TYPE_AD => '广告',
    ];
}
